package fleet_management

class VehicleDatabase {
	
	String vehicleType
	String vehicleNumber
	String brandName
	String model
	Date yearMade
	int totalSeats
	String engineNumber
	String chassisNumber
	Date blueBookValidity
	Date pollutionCheck
	Date acquisitionDate
	String sourceOfFund
	String duty
	String hand
	String fuelType
	Long totalCost
	Date insuranceValidity
	Long insuredAmount
	Long premium
	
	String adminRole
	
//	static belongsTo = Maintenance 

    static constraints = {
		
		vehicleType(blank:false,nullable:false)
		vehicleNumber(blank:false,nullable:false)
		brandName(blank:false,nullable:false)
		model(blank:false,nullable:false)
		yearMade(blank:false,nullable:false)
		totalSeats(blank:false,nullable:false)
		engineNumber(blank:false,nullable:false)
		chassisNumber(blank:false,nullable:false)
		blueBookValidity(blank:false,nullable:false)
		pollutionCheck(blank:false,nullable:false)
		acquisitionDate(blank:false,nullable:false)
		sourceOfFund(blank:false,nullable:false)
		duty(blank:false,nullable:false)
		hand(blank:false,nullable:false)
		fuelType(blank:false,nullable:false)
		totalCost(blank:false,nullable:false)
		insuranceValidity(blank:false,nullable:false)
		insuredAmount(blank:false,nullable:false)
		premium(blank:false,nullable:false)
		
		
    }
	String toString(){
		return "$vehicleNumber"
		}
}
